<?php if (!defined('THINK_PATH')) exit(); if (!defined('SHUIPF_VERSION')) exit(); ?>
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>系统后台 - <?php echo ($Config["sitename"]); ?> - by ShuipFCMS</title>
<?php if (!defined('SHUIPF_VERSION')) exit(); ?><link href="<?php echo ($config_siteurl); ?>statics/css/admin_style.css" rel="stylesheet" />
<link href="<?php echo ($config_siteurl); ?>statics/js/artDialog/skins/default.css" rel="stylesheet" />
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "<?php echo ($config_siteurl); ?>",
    JS_ROOT: "statics/js/",
    TOKEN: "<?php echo ($__token__); ?>"
};
</script>
<script src="<?php echo ($config_siteurl); ?>statics/js/wind.js"></script>
<script src="<?php echo ($config_siteurl); ?>statics/js/jquery.js"></script>
</head>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<?php  $getMenu = AdminbaseAction::getMenu(); if($getMenu) { ?>
<div class="nav">
  <ul class="cc">
    <?php
 foreach($getMenu as $r){ $app = $r['app']; $model = $r['model']; $action = $r['action']; ?>
    <li <?php echo $action==ACTION_NAME?'class="current"':""; ?>><a href="<?php echo U("".$app."/".$model."/".$action."",$r['data']);?>"><?php echo $r['name'];?></a></li>
    <?php
 } ?>
  </ul>
</div>
<?php } ?>
<!-- <div class="mb10">
<a href="javascript:void(0)" onClick="javascript:openwinx('<?php echo U("Buy/Buy/addGoods");?>','')" class="btn" title="添加商品">
	<span class="add"></span>
	添加商品
</a>

</div> -->
<!-- <div class="h_a">搜索</div>
<form method="get" action="">
<input type="hidden" value="Contents" name="g">
<input type="hidden" value="Content" name="m">
<input type="hidden" value="classlist" name="a">
<input type="hidden" value="<?php echo ($catid); ?>" name="catid">
<input type="hidden" value="0" name="steps">
<input type="hidden" value="1" name="search">
<div class="search_type cc mb10">
	<div class="mb10">
		<span class="mr20">
			时间：
			<input type="text" name="start_time" class="input length_2 J_date" value="<?php echo ($_GET['start_time']); ?>" style="width:80px;">
			-
			<input type="text" class="input length_2 J_date" name="end_time" value="<?php echo ($_GET['end_time']); ?>" style="width:80px;">
			<select class="select_2" name="posids"style="width:70px;">
				<option value='' <?php if( $posids == '' ): ?>selected<?php endif; ?>
				>全部
			</option>
			<option value="1" <?php if( $posids == 1 ): ?>selected<?php endif; ?>
			>推荐
		</option>
		<option value="2" <?php if( $posids == 2 ): ?>selected<?php endif; ?>
		>不推荐
	</option>
</select>
<select class="select_2" name="searchtype" style="width:70px;">
	<option value='0' <?php if( $searchtype == '0' ): ?>selected<?php endif; ?>
	>标题
</option>
<option value='1' <?php if( $searchtype == '1' ): ?>selected<?php endif; ?>
>简介
</option>
<option value='2' <?php if( $searchtype == '2' ): ?>selected<?php endif; ?>
>用户名
</option>
<option value='3' <?php if( $searchtype == '3' ): ?>selected<?php endif; ?>
>ID
</option>
</select>
关键字：
<input type="text" class="input length_2" name="keyword" style="width:200px;" value="" placeholder="请输入关键字...">
<button class="btn">搜索</button>
</span>
</div>
</div>
</form> -->
<form class="J_ajaxForm" action="" method="post">
<div class="table_list">
<table width="100%">
<colgroup>
<col width="50">
<col width="200">
<col width="200">
<col width="100">
<col width="100">
<col width="150">
<col width="120">
<col width="150">
<!-- <col width=""> -->
<col width="100">
</colgroup>
<thead>
<tr>
<td>ID</td>
<td>订单号</td>
<td>下单时间</td>
<td>用户名</td>
<td>付款金额</td>
<td>订单状态</td>
<td>姓名</td>
<td>联系方式</td>
<!-- <td>附言</td> -->
<td>管理操作</td>
</tr>
</thead>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
<td><?php echo ($vo["id"]); ?></td>
<td>
<?php echo ($vo["ordersn"]); ?>
</td>
<td>
<?php echo (date("Y-m-d H:i:s",$vo["addtime"])); ?></td>
<td>
<?php echo ($vo["username"]); ?>
</td>

<td><?php echo ($vo["price"]); ?></td>
<td>
<?php echo ($vo["ispayname"]); ?></td>
<td><?php echo ($vo["truename"]); ?></td>
<td><?php echo ($vo["phone"]); ?></td>
<!-- <td><?php echo ($vo["remark"]); ?></td> -->
<td>
<a href="<?php echo U('Buy/Buy/orderDetails',array('id'=>$vo['id']));?>" >详情</a>
|
<a href="<?php echo U("Buy/Buy/delOrder",array("id"=>$vo['id']));?>" class="J_ajax_del" >删除</a>
</td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div class="p10">
<div class="pages"><?php echo ($Page); ?></div>
</div>

</div>
<!-- <div>
<div class="btn_wrap_pd">
<label class="mr20">
<input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
<button class="btn J_ajax_submit_btn" type="submit" data-action="<?php echo U('Contents/Content/listorder',array('catid'=>$catid));?>">排序</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="<?php echo U('Contents/Content/public_check',array('catid'=>$catid));?>">审核</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="<?php echo U('Contents/Content/public_nocheck',array('catid'=>$catid));?>">取消审核</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="<?php echo U('Contents/Content/delete',array('catid'=>$catid));?>">删除</button>
<button class="btn" type="button" onClick="pushs()">推送</button>
<button class="btn" type="button" id="J_Content_remove">批量移动</button>
<button class="btn J_ajax_submit_btn" type="submit" data-action="<?php echo U('Contents/Createhtml/batch_show',array('catid'=>$catid,'steps'=>0));?>">批量生成HTML</button>
</div>
</div> -->
</form>
</div>
<script src="<?php echo ($config_siteurl); ?>statics/js/common.js?v"></script>
<script>
setCookie('refersh_time', 0);
function refersh_window() {
    var refersh_time = getCookie('refersh_time');
    if (refersh_time == 1) {
        window.location.reload();
    }
}
setInterval(function(){
	refersh_window()
}, 3000);
// $(function () {
//     Wind.use('ajaxForm','artDialog','iframeTools', function () {
//         //批量移动
//         $('#J_Content_remove').click(function (e) {
//             var str = 0;
//             var id = tag = '';
//             $("input[name='ids[]']").each(function () {
//                 if ($(this).attr('checked')) {
//                     str = 1;
//                     id += tag + $(this).val();
//                     tag = '|';
//                 }
//             });
//             if (str == 0) {
// 				art.dialog.through({
// 					id:'error',
// 					icon: 'error',
// 					content: '您没有勾选信息，无法进行操作！',
// 					cancelVal: '关闭',
// 					cancel: true
// 				});
//                 return false;
//             }
//             var $this = $(this);
//             art.dialog.open("<?php echo ($config_siteurl); ?>index.php?g=Contents&m=Content&a=remove&catid=<?php echo ($catid); ?>&ids=" + id, {
//                 title: "批量移动"
//             });
//         });
//     });
// });

// function view_comment(obj) {
// 	Wind.use('artDialog','iframeTools', function () {
//          art.dialog.open($(obj).attr("data-url"), {
// 			close:function(){
// 				$(obj).focus();
// 			},
//             title: $(obj).attr("data-title"),
// 			width:"800px",
//             height: '520px',
// 			id:"view_comment",
//             lock: true,
//             background:"#CCCCCC",
//             opacity:0
//         });
//     });
// }

// function pushs() {
//     $("form").submit(function () {
//         return false;
//     });
//     var str = 0;
//     var id = tag = '';
//     $("input[name='ids[]']").each(function () {
//         if ($(this).attr('checked')) {
//             str = 1;
//             id += tag + $(this).val();
//             tag = '|';
//         }
//     });
//     if (str == 0) {
//        art.dialog({
// 		   id:'error',
// 		   icon: 'error',
// 		   content: '您没有勾选信息，无法进行操作！',
// 		   cancelVal: '关闭',
// 		   cancel: true
// 		});
//         return false;
//     }
//     Wind.use('artDialog','iframeTools', function () {
//          art.dialog.open("<?php echo ($config_siteurl); ?>index.php?g=Contents&m=Content&a=push&action=position_list&modelid=<?php echo ($modelid); ?>&catid=<?php echo ($catid); ?>&id=" + id, {
//             title: "信息推送"
//         });
//     });
// }
</script>
</body>
</html>